// fast4j - Fast & Agile Service Tools for Java
// Copyright (C) 2007 Alexandre ROMAN
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

// $Id: ServiceBridge.java 40 2007-03-29 20:57:50Z alexandre.roman $

package fast4j.ejbbridge;

/**
 * Service bridge interface. This interface is used by clients to access
 * services exposed in a Spring context, backed by EJB Bridge. As a client, you
 * should use {@link ServiceProxyFactoryBean} to ease-of-use.
 * @author alexandre.roman
 */
public interface ServiceBridge {
    /**
     * Calls a service method.
     * @param call describes which service method to call
     * @return service result
     * @throws ServiceBridgeException if an error occurred
     */
    ServiceResult call(ServiceCall call) throws ServiceBridgeException;
}
